package o;

import android.content.Context;
import com.huawei.appgallery.serverreqkit.api.bean.BaseResponseBean;
import com.huawei.appgallery.serverreqkit.api.bean.ResponseBean;
import com.huawei.appgallery.serverreqkit.api.listener.IServerCallBack;
import java.lang.ref.WeakReference;

public abstract class dlw implements IServerCallBack {
    private cvt ˊ;
    protected WeakReference<Context> ˏ;

    protected abstract cvt ˏ();

    public dlw(Context context) {
        if (context != null) {
            this.ˏ = new WeakReference(context);
        }
    }

    public void ˋ() {
        this.ˊ = ˏ();
        if (this.ˊ != null) {
            this.ˊ.targetServer = "server.store";
            this.ˊ.setBlockIfProtocolNotAgreed(false);
            cfw.ˎ(this.ˊ, this);
        }
    }

    public void ॱ() {
        this.ˊ = ˏ();
        if (this.ˊ != null) {
            this.ˊ.targetServer = "server.store";
            this.ˊ.setBlockIfProtocolNotAgreed(false);
            notifyResult(this.ˊ, (BaseResponseBean) cfw.ॱ(this.ˊ));
        }
    }

    public void prePostResult(BaseRequest o_cvu, ResponseBean responseBean) {
    }
}
